# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=gnome-sudoku
pkgver=47.1.1
pkgrel=0
arch="all"
url="https://wiki.gnome.org/Apps/Sudoku"
pkgdesc="Test your logic skills in this number grid puzzle"
license="GPL-3.0-or-later"
makedepends="yelp-tools vala meson libgee-dev libadwaita-dev gtk4.0-dev json-glib-dev qqwing-dev itstool desktop-file-utils"
source="https://download.gnome.org/sources/gnome-sudoku/${pkgver%%.*}/gnome-sudoku-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	abuild-meson -Db_lto=true . build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}

sha512sums="
864d6838f0842c9be946ec6ed43d0c76d00c3b579952097f88aaca5d94cff5211c65d8a67c09bdb65cc0ff0f37be304077745afa0db64d299f2f61d0580b46cc  gnome-sudoku-47.1.1.tar.xz
"
